import * as request from '../../utils/request';
import config from '../../config/config';

export function getDepartmentList(params) {
  return request.get(`${config.organize_api.getDepartmentList}`, params);
}

export function getDepartmentPage(params) {
  return request.get(`${config.organize_api.getDepartmentPage}`, params);
}

export function addDepartment(params) {
  return request.post(`${config.organize_api.addDepartment}`, params);
}

export function updateDepartment(params) {
  return request.post(`${config.organize_api.updateDepartment}`, params);
}

export function deleteDepartment(params) {
  return request.post(`${config.organize_api.deleteDepartment}`, params);
}
